Skip to main content

Json Library

Type

library

Description

This script library provides functions for encoding and decoding JSON.

Children Properties

Function

NameSummarySyntax
JsonExportConverts a LiveCode value to a string in JSON format.JsonExport(<pValue>)
jsonEncodeForDisplayConverts a value to a string in JSON format, using appropriate whitespace to make it readable.jsonEncodeForDisplay(<pValue>)
JsonImportConverts a string in JSON format to a LiveCode value.JsonImport(<pString>)
jsonEncodeAsciiConverts a value to a string in JSON format, using only ASCII characters and minimal whitespace.jsonEncodeAscii(<pValue>)
jsonDecodeUtf8Converts a binary string, containing utf-8 encoded JSON, to a LiveCode value.jsonDecodeUtf8(<pJsonUtf8>)
jsonEncodeUtf8Converts a value to JSON format, encoded as a UTF-8 binary string.jsonEncodeUtf8(<pValue>)